<template>
    <div>
        <p>新增</p>
        <el-form-item label="请求方法">
            <el-input v-model="create.url.method"/>
        </el-form-item>
        <el-form-item label="模块">
            <el-input v-model="create.url.module"/>
        </el-form-item>
        <el-form-item label="方法">
            <el-input v-model="create.url.value"/>
        </el-form-item>

        <p>编辑</p>
        <el-form-item label="请求方法">
            <el-input v-model="edit.url.method"/>
        </el-form-item>
        <el-form-item label="模块">
            <el-input v-model="edit.url.module"/>
        </el-form-item>
        <el-form-item label="方法">
            <el-input v-model="edit.url.value"/>
        </el-form-item>

        <p>取消</p>
        <el-form-item label="返回页面(的路由)">
            <el-input v-model="cancel.to"/>
        </el-form-item>
    </div>
</template>

<script>
    export default {
        inject: ['config'],
        data() {
            return {
                create: this.config.create,
                edit: this.config.edit,
                cancel: this.config.cancel,
            }
        },
    }
</script>

<style lang="scss" scoped>

</style>
